package cate.game.activity.destinygate.po;

import cate.common.table.activity.destinygate.row.DestinyGateChapterRow;
import cate.game.GameBody;
import com.fasterxml.jackson.annotation.JsonIgnore;
import easy.java.dev.note.NoteField;

import java.util.ArrayList;
import java.util.List;

public class DestinyGateLevel {
    @NoteField(value = "关卡ID")
    public int level;

    @NoteField(value = "是否通关")
    public boolean pass;

    @NoteField(value = "星级挑战", detail = "<星级挑战ID>")
    public List<Integer> challenge;

    @NoteField(value = "成就挑战", detail = "<成就挑战ID>")
    public List<Integer> achieve;


    public void initLevel() {
        if (challenge == null) {
            challenge = new ArrayList<>();
        }
        if (achieve == null) {
            achieve = new ArrayList<>();
        }
    }

    public DestinyGateLevel(int level) {
        this.level = level;
    }
}
